# -*- coding: utf-8 -*-
# @Time         : 12:17 2025/2/26
# @Author       : Chris
# @Description  :
from typing import Optional, List

from .._models import BaseModel


class ProductPropertyValue(BaseModel):
    value_id: str
    """属性值ID"""

    value_name: str
    """属性值名称"""

    sub_property_id: Optional[str] = None
    """下级属性ID, 表示存在下级属性，需二次查询"""


class ProductProperty(BaseModel):
    items: List[ProductPropertyValue]
    """属性值组合"""

    property_id: str
    """属性ID"""

    property_name: str
    """属性名称"""

    required: int
    """属性是否必选"""
